#include <iostream>
#include <cstdlib>

#define maxn 5000000
#define maxv 10000000

using namespace std;

char mod(int type){
	if(!type)return('+');
	if(type == 1)return('?');
	return('-');
}

int main()
{
	ios_base::sync_with_stdio(false);
	int x = time(NULL);
	srand(x);
	int n = maxn;
	cout << n << '\n';
	for(int i = 0; i < n; ++i){
		int x = rand() % 3, y = rand() % maxv;
		cout << mod(x) << ' ' << y << '\n';
	}
	return 0;
}
